<h1>Asset Plugin</h1>

<p>The <em>asset</em> plugin creates links to assets such as css, javascript, and images.</p>

<h2>Common Parameters</h2>

<p>Each function in the asset takes two parameters:</p>

<table cellpadding="0" cellspacing="0">

	<tr>
		<th>Parameter</th>
		<th>Description</th>
	</tr>
	
	<tr>
		<td width="100">file</td>
		<td>Required. The name of the image, javascript, or css file.</td>
	</tr>
	<tr>
		<td width="100">module</td>
		<td>Required. The slug of the module where the image, javascript, or css file you are looking for is.</td>
	</tr>

</table>

<p>Aside from these two parameters, each function will take any more parameters that are appropriate to the item being generated and use those. For example, you can pass an 'alt' parameter to an asset function dealing with images, and it will use it.</p>

<h2>URLs and Paths</h2>

<p>Each asset type has functions for the normal insert (an img tag for images, for instance), and the plain URLs and Paths. URLs are complete URLs, and paths are paths system paths to each of these assets.</p>


<h2>CSS Asset Functions</h2>

<h3>{pyro:asset:css}</h3>

<p>Generates a css insert link tag.</p>

<h3>{pyro:asset:css_url}</h3>

<p>Generates a full url to a css asset.</p>

<h3>{pyro:asset:css_url}</h3>

<p>Generates a path to a css asset.</p>

<br />

<h2>Image</h2>

<h3>{pyro:asset:image}</h3>

<p>Generates an img tag.</p>

<h3>{pyro:asset:image_url}</h3>

<p>Generates a full url to an image asset.</p>

<h3>{pyro:asset:image_path}</h3>

<p>Generates a path to an image asset.</p>

<br />

<h2>JS</h2>

<h3>{pyro:asset:js}</h3>

<p>Generates a js script insert.</p>

<h3>{pyro:asset:js_url}</h3>

<p>Generates a full url to a js asset.</p>

<h3>{pyro:asset:js_path}</h3>

<p>Generates a path to a js asset.</p>
